package com.huxiu.utils;

import android.content.Context;

import com.umeng.analytics.MobclickAgent;

import java.util.HashMap;

/**
 * Created by mfp on 15/12/24.
 */
public class UmenEvent {

    public static final String COMMENT_INTENT_KEY="comment_intent_key";

    public static final String SHARE_INTENT_KEY="share_intent_key";

    public static final int ARTICLE_SHARE=1;

    public static final int HUATI_SHARE=2;

    public static final int GROUP_SHARE=3;

    public static final int USER_LOGIN=1;

    public static final int LOGIN_LOGIN=2;

    //首页
    public static final String APP_HOME = "app_home";
    //底部导航-资讯
    public static final String HOME_TABBAR_ARTICLE = "底部导航-资讯";

    //底部导航-群组
    public static final String HOME_TABBAR_GROUP = "底部导航-群组";

    //底部导航-个人中心
    public static final String HOME_TABBAR_USERCENTER = "底部导航-个人中心";

    //焦点图第一张
    public static final String HOME_BANNER_1 = "焦点图第一张";

    //焦点图第二张
    public static final String HOME_BANNER_2 = "焦点图第二张";

    //焦点图第三张
    public static final String HOME_BANNER_3 = "焦点图第三张";

    //焦点图第四张
    public static final String HOME_BANNER_4 = "焦点图第四张";

    //推荐
    public static final String HOME_PAGECONTROL_TJ = "推荐";

    //说正经
    public static final String HOME_PAGECONTROL_SZJ = "说正经";

    //弄创潮
    public static final String HOME_PAGECONTROL_NCC = "弄创潮";

    //早晚见
    public static final String HOME_PAGECONTROL_ZWJ = "早晚见";

    //耍腔调
    public static final String HOME_PAGECONTROL_SQD = "耍腔调";

    //专题
    public static final String HOME_PAGECONTROL_ZT = "专题";

    //搜索
    public static final String HOME_SEARCH = "搜索";


    public static final String APP_ARTICLE_CONTENT="app_article_content";

    //文章
    public static final String HOME_ARTICLELIST_CLICK = "文章";

    //收藏
    public static final String ARTICLE_DETAIL_COLLECT_ARTICLE = "收藏";

    //发表评论
    public static final String ARTICLE_DETAIL_SEND_COMMENT = "发表评论（点击发表按钮时触发）";

    //文章点赞
    public static final String ARTICLE_DETAIL_ARTICLE_LIKE = "文章点赞";

    //查看全部评论-从热门    暂未添加
    public static final String ARTICLE_DETAIL_ENTER_COMMENT_HOT = "查看全部评论-从热门";

    //查看全部评论-从底部
    public static final String ARTICLE_DETAIL_ENTER_COMMENT_BOTTOM = "查看全部评论-从底部";

    //相关话题
    public static final String ARTICLE_DETAIL_RELATE_TOPIC = "相关话题";

    //相关文章
    public static final String ARTICLE_DETAIL_RELATE_ARTICLE = "相关文章";

    //分享-微信好友
    public static final String ARTICLE_DETAIL_SHARE_WECHATFRIEND = "分享-微信好友";

    //分享-朋友圈
    public static final String ARTICLE_DETAIL_SHARE_WECHATTIMELINE = "分享-朋友圈";

    //分享-微博
    public static final String ARTICLE_DETAIL_SHARE_WEIBO = "分享-微博";

    public static final String COMMENT_LIST="comment_list";

    //点击最热评论
    public static final String COMMENT_LIST_CLICK_COMMENT_HOT="点击最热评论";

    //点击最新评论
    public static final String COMMENT_LISTCLICK_COMMENT_NEW = "点击最新评论";

    //顶评论
    public static final String COMMENT_LISTLIKE_COMMENT = "顶评论";

    //踩评论
    public static final String COMMENT_LISTUNLIKE_COMMENT = "踩评论";

    //回复评论
    public static final String COMMENT_LISTREPLY_COMMENT = "回复评论";

    //底部回复评论
    public static final String COMMENT_LISTBOTTOM_REPLY_COMMENT = "底部回复评论";

    //回复点评    // 没做
    public static final String COMMENT_LISTREPLY_POST_COMMENT = "回复点评";


    public static final String APP_USERCENTER_MYCOLLECT="app_usercenter_mycollect";
    //收藏修改
    public static final String MY_COLLECT_CHANGE = "收藏修改";

    //收藏删除
    public static final String MY_COLLECT_DEL = "收藏删除";

    public static final String APP_USERCENTER_SETTING="app_usercenter_setting";

    //关于我们
    public static final String ABOUT_US = "关于我们";

    //清除缓存
    public static final String CLEAR_CACHE = "清除缓存";

    //检查更新
    public static final String SETTING_UPDATA = "检测更新";

    //账号绑定
    public static final String SETTING_ACCOUNT_BIND = "账号绑定";

    //个人中心
    public static final String APP_USERCENTER= "app_usercenter";

    //个人中心-推荐给好友
    public static final String USERCENTER_SHARE_TOFRIEND = "usercenter_share_tofriend";

    //个人中心-给我们评分
    public static final String USERCENTER_APPSTORE_SCORE = "usercenter_appstore_score";

    //个人中心-账号登录
    public static final String USERCENTER_LOGIN_ACCOUNT = "账号登录";

    //个人中心-微博登录
    public static final String USERCENTER_LOGIN_WEIBO = "微博登录";

    //个人中心-qq登录
    public static final String USERCENTER_LOGIN_QQ = "QQ登录";

    //个人中心-微信登录
    public static final String USERCENTER_LOGIN_WECHAT = "微信登录";

    //个人中心-反馈意见
    public static final String USERCENTER_SUGGEST = "反馈意见";

    //个人中心-我的收藏
    public static final String USERCENTER_MYCOLLECT = "我的收藏";

    //个人中心-设置
    public static final String USERCENTER_SETTING = "设置";

    //账号登录成功
    public static final String ACCOUNT_LOGIN = "账号登录";

    //微博登录成功
    public static final String ACCOUNT_LOGIN_WEIBO = "微博登录";

    //qq登录成功
    public static final String ACCOUNT_LOGIN_QQ = "qq登录";

    //微信登录成功
    public static final String ACCOUNT_LOGIN_WECHAT = "微信登录";

    //注册成功
    public static final String ACCOUNT_REGISTER = "注册成功";

    public static final String APP_ACCOUNT_REGISTER = "app_account_register";

    //关联账号
    public static final String ACCOUNT_RELATE_ACCOUNT = "关联账号";


    //群组首页 -未登录
    public static final String GROUP_PAGE_UNLOGIN = "group_page_unlogin";
    //群组未登录-我的
    public static final String GROUP_PAGE_UNLOGIN_MY = "我的";

    //群组未登录-发现
    public static final String GROUP_PAGE_UNLOGIN_DISCOVER = "发现";

    //群组未登录-话题
    public static final String GROUP_UNLOGIN_TOPIC = "话题";

    //群组未登录-群组
    public static final String GROUP_UNLOGIN_GROUP = "群组";

    //群组未登录-搜索
    public static final String GROUPE_UNLOGIN_SEARCH = "groupe_unlogin_search";

    //群组未登录-加入推荐
    public static final String GROUP_UNLOGIN_JOINRECOMMEND = "加入-推荐小组";

    //群组未登录-加入热门
    public static final String GROUP_UNLOGIN_JOINHOT = "加入-热门小组";

    //我的频道-登录
    public static final String GROUP_UNLOGIN_MYCHANNEL_LOGIN = "我的频道-登录";

    //群组首页 -已登录
    public static final String GROUP_PAGE_LOGIN = "group_page_login";


    //群组已登录-我的
    public static final String GROUP_PAGE_LOGIN_MY = "我的";

    //群组已登录-发现
    public static final String GROUP_PAGE_LOGIN_DISCOVER = "发现";

    //群组已登录-话题
    public static final String GROUP_LOGIN_TOPIC = "话题";

    //群组已登录-群组
    public static final String GROUP_LOGIN_GROUP = "群组";

    //,群组已登录-我发表
    public static final String GROUP_LOGIN_MY_PUBLISH = "我发表";

    //群组已登录-我回复
    public static final String GROUP_LOGIN_MY_REPLY = "我回复";

    //群组已登录-加入的群组
    public static final String GROUP_LOGIN_JOIN_GROUP = "加入的群组";

    //群组已登录-建立的群组
    public static final String GROUP_LOGIN_BUILD_GROUP = "建立的群组";

    //话题列表
    public static final String APP_TOPIC_LIST = "topic_list";
    //话题列表-话题
    public static final String TOPIC_LIST_TOPIC = "话题";

    //话题列表-发表话题
    public static final String TOPIC_LIST_PUBLISH = "发表话题";

    //话题列表-微信分享
    public static final String TOPIC_LIST_SHAREWECHAT = "微信分享";

    //话题列表-朋友圈
    public static final String TOPIC_LIST_SHAREWECHATTIMELINE = "朋友圈分享";

    //话题列表-微博分享
    public static final String TOPIC_LIST_SHAREWEIBO = "微博分享";

    //话题列表-展开群组分享
    public static final String TOPIC_LIST_OPEN_SHARE = "话题列表-展开群组分享";

    //话题列表-加入群组
    public static final String TOPIC_LIST_JOIN = "话题列表-加入群组";

    //话题列表-退出群组
    public static final String TOPIC_LIST_OUT = "话题列表-退出群组";

    public static final String APP_TOPIC_DETAIL="app_topic_detail";

    //话题页-点击顶部返回群组
    public static final String TOPIC_DETAIL_CLICK_TOP = "点击顶部返回群组";

    //话题页-话题点赞
    public static final String TOPIC_DETAIL_LIKE = "话题点赞";

    //话题页-回复话题
    public static final String TOPIC_DETAIL_REPLY_TOPIC = "回复话题";

    //话题页-回复评论
    public static final String TOPIC_DETAIL_REPLY_COMMENT = "回复评论";

    //话题页-评论点赞
    public static final String TOPIC_DETAIL_COMMENT_LIKE = "评论点赞";

    //话题页-微信分享
    public static final String TOPIC_DETAIL_SHAREWEIXIN = "微信分享";

    //话题页-微信朋友圈分享
    public static final String TOPIC_DETAIL_SHAREWECHATTIMELINE = "微信朋友圈分享";

    //话题页-微博分享
    public static final String TOPIC_DETAIL_SHAREWEIBO = "微博分享";

    //退出登录
    public static final String SETTING_LOGOUT = "出登录";


    public static void UmengEventMap(Context mContext, String eventId, String event_childId){
        HashMap<String,String> map = new HashMap<String,String>();
        map.put(eventId,event_childId);
        MobclickAgent.onEvent(mContext, eventId, map);
    }
}
